Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Handle deactived & suspended users. #21

Conversation

Half-Shot
Copy link

Implements https://github.com/element-hq/customer-success/issues/398

This PR changes the logic so that deactivated users are always ignored. Suspended users are also ignored by default, but may be configured to continue accepting invites.

@Half-Shot Half-Shot requested a review from a team as a code owner January 10, 2025 14:01
# Check if the event is an invite for a local user.
is_invite_for_local_user = (
if not (
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic was changed to short circuit, mostly to prevent doing redundant work when we already have decided not to accept an invite (e.g. There is no sense in trying to pull the UserInfo from the DB if we're not accepting a group invite).

@Half-Shot
Copy link
Author

This project is actually no longer maintained. I'll port this work to Synapse where the module now lives.

@Half-Shot Half-Shot closed this Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant